using DG.Tweening;
using System;
using UnityEngine;

namespace Brick
{
	public class gdk_animation
	{
		public static void moveTo(RectTransform transform, Vector3 v3, float time, Action callback)
		{
			transform.DOLocalMove(v3, time).SetEase(Ease.Unset).OnComplete(delegate
			{
				callback();
			});
		}

		public static void scaleTo(RectTransform transform, Vector3 v3, float time, Action callback)
		{
			transform.DOScale(v3, time).SetEase(Ease.Unset).OnComplete(delegate
			{
				callback();
			});
		}
	}
}

